package com.mxx.springaction;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author xiaoxu.ma
 * @date 2021/11/11 15:12
 */
public class CDPlayer {

    CompactDisc compactDisc;
    String ss;

    public CDPlayer(CompactDisc compactDisc, String ss) {
        this.compactDisc = compactDisc;
        this.ss = ss;
    }

    void play() {
        System.out.println(ss);
        compactDisc.play();
    }
}
